import Vue from 'vue'
import Vuex from 'vuex'

//挂载Vuex
Vue.use(Vuex)

//创建VueX对象
const store = new Vuex.Store({
    state:{},
    mutations:{
        //es6语法，等同edit:funcion(){...}
        setLogin(state, isLogin){
            state.isLogin = isLogin
        },
    }
})

export default store